import { BaseApi } from "@/api/base";
import http from "@/api/http";

class MicroAppApi extends BaseApi {
  constructor(url) {
    super(url);
  }
  publish = (params: any): Promise<any> => {
    return http.post(this.url + "/publish", params);
  };
  getEntityVoList = (params: any): Promise<any> => {
    return http.get(this.url + "/getEntityVoList", params);
  };
  getEntityBoList = (params: any): Promise<any> => {
    return http.get(this.url + "/getEntityBoList", params);
  };
  getModelList = (params: any): Promise<any> => {
    return http.get(this.url + "/getModelList", params);
  };
}
export default new MicroAppApi("/micro/app");
